package com.ts.conch.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ts.conch.entity.TsPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ItsPermissionDao extends BaseMapper<TsPermission> {
    /**
     * @return java.util.List<com.lr.iboot.api.entity.LrResource>
     * @method queryAllLrPermission
     * create by: IDai
     * description: 查验出所有资源
     * create time: 2020-08-13 11:34
     * @Param: []
     */
    List<TsPermission> queryAllLrPermission();

    /**
     * @return List<TsPermission>
     * @method queryAdminPermission
     * create by: IDai
     * description: 查询指定用户的资源
     * create time: 2020-09-01 14:43
     * @Param: [adminId]
     */
    List<TsPermission> queryAdminPermission(@Param("adminId") String adminId);

    int deleteByPrimaryKey(String id);

    int insertSelective(TsPermission record);

    TsPermission selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TsPermission record);

    int updateByPrimaryKeyWithBLOBs(TsPermission record);

    int updateByPrimaryKey(TsPermission record);

}